<table class="tableList" cellpadding="3" cellspacing="1" border="0" width="100%">
	<tr>
		<th>
			<a href="javascript:void(0);" onclick="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:'name',
										sq:document.getElementsByName('sq')[0].value,
										offset:{/literal}{$parameter.offset}{literal},
										ordertype:{/literal}{strip}'
			{if $parameter.order == "name"}
				{if $parameter.ordertype == "asc" OR $parameter.ordertype == ""}desc{else}asc{/if}
			{else}
			asc
			{/if}
			'{/strip}{literal}
										}
								}]
							});">Name</a>{/literal}
			{strip}
			{if $parameter.order == "name"}
				&nbsp;{if $parameter.ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
			{/if}
			{/strip}
		</th>
		<th>
			<a href="javascript:void(0);" onclick="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:'created',
										sq:document.getElementsByName('sq')[0].value,
										offset:{/literal}{$parameter.offset}{literal},
										ordertype:{/literal}{strip}'
			{if $parameter.order == "created"}
				{if $parameter.ordertype == "asc" OR $parameter.ordertype == ""}desc{else}asc{/if}
			{else}
			asc
			{/if}
			'{/strip}{literal}
										}
								}]
							});">erstellt am</a>{/literal}{strip}
			{if $parameter.order == "created"}
				&nbsp;{if $parameter.ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
			{/if}
			{/strip}
		</th>
		<th>
			<a href="javascript:void(0);" onclick="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:'last_edit',
										sq:document.getElementsByName('sq')[0].value,
										offset:{/literal}{$parameter.offset}{literal},
										ordertype:{/literal}{strip}'
			{if $parameter.order == "last_edit"}
				{if $parameter.ordertype == "asc" OR $parameter.ordertype == ""}desc{else}asc{/if}
			{else}
			asc
			{/if}
			'{/strip}{literal}
										}
								}]
							});">bearbeitet am</a>{/literal}{strip}
			{if $parameter.order == "last_edit"}
				&nbsp;{if $parameter.ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
			{/if}
			{/strip}
		</th>
		<th>
			<a href="javascript:void(0);" onclick="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:'position',
										sq:document.getElementsByName('sq')[0].value,
										offset:{/literal}{$parameter.offset}{literal},
										ordertype:{/literal}{strip}'
			{if $parameter.order == "position"}
				{if $parameter.ordertype == "asc" OR $parameter.ordertype == ""}desc{else}asc{/if}
			{else}
			asc
			{/if}
			'{/strip}{literal}
										}
								}]
							});">position</a>{/literal}{strip}
			{if $parameter.order == "position"}
				&nbsp;{if $parameter.ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
			{/if}
			{/strip}
		</th>
		<th>
			<a href="javascript:void(0);" onclick="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:'class_name',
										sq:document.getElementsByName('sq')[0].value,
										offset:{/literal}{$parameter.offset}{literal},
										ordertype:{/literal}{strip}'
			{if $parameter.order == "class_name"}
				{if $parameter.ordertype == "asc" OR $parameter.ordertype == ""}desc{else}asc{/if}
			{else}
			asc
			{/if}
			'{/strip}{literal}
										}
								}]
							});">Klasse</a>{/literal}{strip}
			{if $parameter.order == "class_name"}
				&nbsp;{if $parameter.ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
			{/if}
			{/strip}
		</th>
	</tr>
	{assign var="bgcolor" value=""}					
	{foreach name="elementloop" item=elm from=$elements}
		<tr>
			{if $bgcolor == ""}
				{assign var="bgcolor" value="tablerow_color"}					
			{else}
				{assign var="bgcolor" value=""}					
			{/if}
			<td class="{$bgcolor}">
				<a href="javascript:void(0);" onclick="ContentEditorEdit('{$elm.obj_id}','');">
					{$elm.obj_name_name}
				</a>
			</td>
			<td class="{$bgcolor}">
				{$elm.obj_created|date_format:"%d.%m.%y / %H:%M"}
			</td>
			<td class="{$bgcolor}">
					{if $elm.obj_last_edit > 0}
						{$elm.obj_last_edit|date_format:"%d.%m.%y / %H:%M"}
					{else}
						&nbsp;
					{/if}
			</td>
			<td class="{$bgcolor}">
				<form id="sortform_{$elm.obj_id}" onsubmit="return false;" name="sortform_{$elm.obj_id}">
					<input type="hidden" name="obj_parent_obj_id" value="{$elm.obj_parent_obj_id}"/>
					<input type="hidden" name="project_id" value="1"/>
				</form>
				<div id="sortable{$elm.obj_id}">{$elm.obj_position}</div>
			</td>			
			<td class="{$bgcolor}">
				{$elm.class_name}
			</td>
		</tr>
	{/foreach}
</table>
<br />
{if $pager.PAGES > 1}
	<div class="">
		Seite:&nbsp;
		{if $parameter.offset > 0}<a href="javascript:void(0);"onclick="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:{/literal}'{$parameter.order}'{literal},
										sq:document.getElementsByName('sq')[0].value,
										offset:{/literal}{$parameter.offset-1}{literal},
										ordertype:{/literal}'{$parameter.ordertype}'{literal}
										}
								}]
							});{/literal}">&laquo;&nbsp;zurück</a>{/if}
		{foreach name=pagerloop item=pagerentry from=$pager.PAGER}{strip}
				{if $parameter.offset == $pagerentry}<strong>{else}<a href="javascript:void(0);"  onclick="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:{/literal}'{$parameter.order}'{literal},
										sq:document.getElementsByName('sq')[0].value,
										offset:{/literal}{$pagerentry}{literal},
										ordertype:{/literal}'{$parameter.ordertype}'{literal}
										}
								}]
							});{/literal}">{/if}
				{$pagerentry+1}
				{if $parameter.offset == $pagerentry}</strong>{else}</a>{/if}
			 &nbsp;
		{/strip}{/foreach}
		{if $parameter.offset < $pager.PAGES-1}<a href="javascript:void(0);" onclick="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:{/literal}'{$parameter.order}'{literal},
										sq:document.getElementsByName('sq')[0].value,
										offset:{/literal}{$parameter.offset+1}{literal},
										ordertype:{/literal}'{$parameter.ordertype}'{literal}
										}
								}]
							});{/literal}">weiter&nbsp;&raquo;</a>{/if}
	</div>
	<br /><br />
{/if}	